package com.juben.svr.service;

import com.juben.svr.domain.ChangePassWordRequest;
import com.juben.svr.domain.User;
import com.juben.svr.domain.role;

import java.util.List;

public interface UserService {

    User getUserById(Integer uid);

    Boolean userlogin(User user);

    User getUserByAccount(String account);

    User getUserByPhone(String phone);

    Boolean updateUserInfo(User user);

    User RegisterEmail(String email);

    boolean addUser(User user);

    List<role> getRoleList();

    boolean changePassword(int userId, ChangePassWordRequest request);
}
